import request from '@/utils/request'

// 查询企业的部分列表

export function getDeparmentList() {
  return request({
    url: '/company/department'
  })
}

// 根据ID删除部门
export function delDepartment(id) {
  return request({
    url: '/company/department/' + id,
    method: 'delete'

  })
}

// 新增部门
export function creatorDepartment(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 编辑部门
export function editDepartments(id) {
  return request({
    url: '/company/department/' + id
  })
}
